package com.sikaryofficial.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sikaryofficial.backend.domain.entity.ArticleViews;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文章查阅量Mapper接口
 *
 * @author qinjinyuan
 * @date 2024-03-14
 */
public interface ArticleViewsMapper extends BaseMapper<ArticleViews> {
    /**
     * 查询文章查阅量列表
     * @param articleIds
     * @return
     */
    List<ArticleViews> countArticleViewsByArticleId(@Param("articleIds") List<Long> articleIds);
}
